package sample_programs;
import java.util.Scanner;

public class Pyramid {


	public static void main(String[] args) 
	{
		int a,b;
		System.out.println("Enter value of n : ");
Scanner s= new Scanner(System.in);
Integer n=s.nextInt();
for (a=0;a<=n;a++)
{
	for(b=0;b<=a;b++)
		System.out.print(" "+b);
	System.out.print("\n");
	
}// end of for loop
	}//end of main()

}//end of class
